package homework;

public class Card {
    //点数
    private String point;

    /** 花色（黑桃、红心、梅花、方块，♠、♥、♣、♦） */
    private String type;

    private int value;

    public Card(){

    }

    public Card(String point, String type) {
        this.point = point;
        this.type = type;
    }

    @Override
    public String toString() {
        return type+" "+point;
    }

    public Card(String point, String type, int value) {
        this.point = point;
        this.type = type;
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getPoint() {
        return point;
    }

    public void setPoint(String point) {
        this.point = point;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

}
